<table class="view" cellspacing=0 >
<?if(is_array($records )){?>
  <tr class="thl" >
    <th>姓名</th>
    <th>密码</th>
    <th>邮件</th>
    <th>手机</th>
    <th>办公电话</th>
    <th>家庭电话</th>
    <th>部门</th>
    <th>领导</th>
    <th>管理员</th>
    <th>
      操作
    </th>
  </tr>
<?foreach ($records as $r ){?>
  <tr>
    <td><?=$r['name']?></td>
    <td><?=$r['pwd']?></td>
    <td><?=$r['email']?></td>
    <td><?=$r['mobile']?></td>
    <td><?=$r['officetel']?></td>
    <td><?=$r['hometel']?></td>
    <td><?=$r['depart']?></td>
    <td><?=$r['leader']?></td>
    <td><?=$r['admin']?></td>
    <td>
      <a href="/user/view/<?=$r['id']?>" >查看</a>
      <a href="/user/edit/<?=$r['id']?>" >编辑</a> 
    </td>
  </tr>
<?  }
}?>
</table>
<?=$pagination?>
